import { Rule, RuleType } from '@midwayjs/decorator';

export class BasePageDto {
  @Rule(RuleType.number().default(0).min(0))
  start: number;

  @Rule(RuleType.number().default(50).min(1).max(200))
  limit: number;

  @Rule(RuleType.string().default('ASC'))
  order: 'ASC' | 'DESC';
}
